package com.smart.community.work.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * 调班申请关联视图对象
 * 
 * 严格按照《Java后端SpringBoot代码开发规范_重构版.md》VO规范实现：
 * - 功能单一原则：VO类必须是单纯的数据传输对象，功能必须单一
 * - 完整注释：所有字段都有完整的JavaDoc注释和Swagger注解
 * - 字段映射：正确映射关联查询结果字段
 * - 禁止工具方法：只保留基本的getter/setter方法，禁止添加工具方法
 * 
 * @author Wu.Liang
 * @since 2025-01-30
 * @version 1.0.0
 */
@Data
@Schema(description = "调班申请关联视图对象")
public class ScheduleChangeRelVO {

    @Schema(description = "关联ID")
    private Long id;

    @Schema(description = "原排班ID")
    private Long originalScheduleId;

    @Schema(description = "原排班日期")
    private LocalDate originalScheduleDate;

    @Schema(description = "原班次类型")
    private String originalShiftType;

    @Schema(description = "原开始时间")
    private LocalTime originalStartTime;

    @Schema(description = "原结束时间")
    private LocalTime originalEndTime;

    @Schema(description = "目标排班ID")
    private Long targetScheduleId;

    @Schema(description = "目标排班日期")
    private LocalDate targetScheduleDate;

    @Schema(description = "目标班次类型")
    private String targetShiftType;

    @Schema(description = "目标开始时间")
    private LocalTime targetStartTime;

    @Schema(description = "目标结束时间")
    private LocalTime targetEndTime;

    @Schema(description = "申请人ID")
    private Long applicantId;

    @Schema(description = "申请人用户名")
    private String applicantUsername;

    @Schema(description = "申请人真实姓名")
    private String applicantRealName;

    @Schema(description = "审批人ID")
    private Long approverId;

    @Schema(description = "审批人用户名")
    private String approverUsername;

    @Schema(description = "审批人真实姓名")
    private String approverRealName;

    @Schema(description = "调班原因")
    private String changeReason;

    @Schema(description = "状态：1-待审批，2-已批准，3-已拒绝")
    private Integer status;

    @Schema(description = "状态描述")
    private String statusDesc;

    @Schema(description = "审批时间")
    private LocalDateTime approveTime;

    @Schema(description = "审批备注")
    private String approveRemark;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;
}
